package com.vic.gupao.rmi.client;

import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;

public class Client {

    public static void main(String[] args) throws RemoteException, NotBoundException, MalformedURLException {
        IHelloService h = (IHelloService) Naming.lookup("rmi://127.0.0.1/Hello");

        System.out.println(h.sayHi("vic"));
    }
}
